package me.jessyan.mvparms.demo.mvp.ui.holder;

import android.view.View;
import android.widget.TextView;

import com.jess.arms.base.BaseHolder;

import me.jessyan.mvparms.demo.R;
import me.jessyan.mvparms.demo.mvp.ui.widget.CustomIntColorChangeTextView;

/**
 * @author DrChen
 * @Date 2019/3/6 0006.
 * qq:1414355045
 */
public class MyExchangeHolder extends BaseHolder<Boolean> {
    private CustomIntColorChangeTextView userScoreTv;
    private TextView getTv;
    public MyExchangeHolder(View itemView) {
        super(itemView);
        userScoreTv = itemView.findViewById(R.id.user_score_tv);
        getTv = itemView.findViewById(R.id.get_tv);
        getTv.setOnClickListener(this);
    }

    @Override
    public void setData(Boolean data, int position) {
        userScoreTv.setTextIntColor("消耗 300 积分");

    }
}
